/**
 * utils/default-to-integer
 */

const lodash = require('lodash');

module.exports = function(inp, defaultNum) {
    return lodash.defaultTo(parseInt(inp, 10), defaultNum);
};
